package com.qing.springboot01.service.impl;

import com.qing.springboot01.entity.OrderDetail;
import com.qing.springboot01.mapper.OrderDetailMapper;
import com.qing.springboot01.service.OrderDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单明细表 服务实现类
 * </p>
 *
 * @author tina
 * @since 2023-06-26 04:09:20
 */
@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {

    @Autowired
    private OrderDetailMapper orderDetailMapper;
    @Override
    public OrderDetail selectByOrderId(Long orderId) {
        return  orderDetailMapper.selectById(orderId);
    }
}
